package main

import (
	"fmt"
	"unsafe"
)

func main(){
	var c1 byte = '1'
	var c2 byte = 'a'

	fmt.Printf("%T\n",c1)
	fmt.Printf("%d\n",unsafe.Sizeof(c1))
	fmt.Printf("%c\n",c1)
	fmt.Println("c1=",c1)
	fmt.Println("------------------")
	fmt.Printf("%T\n",c2)
	fmt.Printf("%d\n",unsafe.Sizeof(c2))
	fmt.Printf("%c\n",c2)
	fmt.Println("c2=",c2)

	var c3 int = '北'
	fmt.Printf("c3=%c\n",c3)

	var c4 int = 22269
	fmt.Printf("c4=%c\n",c4)

	//字符类型可以进行运算的，相当于一个整数，运算时按照码值计算
	var n1 = 10+'a'
	fmt.Println("n1=",n1)

	
}
